package com.twu.biblioteca;

public class ViewController {

    public static final String WELCOME_MESSAGE = "Welcome to Biblioteca";
    private Library library;
    private MainMenu mainMenu;
    private ConsolePrinter consolePrinter;

    public ViewController(Library library, MainMenu mainMenu, ConsolePrinter consolePrinter, ConsoleInput consoleInput)
    {
        this.library = library;
        this.mainMenu = mainMenu;
        this.consolePrinter = consolePrinter;
    }

    public void Run()
    {
        consolePrinter.WriteLine(WELCOME_MESSAGE);
        library.PrintBookList(consolePrinter);
        mainMenu.PrintMenu(consolePrinter);
    }

}
